package com.yunyi.dm.singleton;

/**
 * 饿汉式
 * 静态代码块的方式
 *
 * @author yunyi
 */
public class HungryMode02 {
    private static HungryMode02 instance;

    static {
        instance = new HungryMode02();
    }

    public HungryMode02 getInstance() {
        return instance;
    }

    private HungryMode02() {
    }
}
